package myzzyl.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import myzzyl.domain.pojo.NursingProjectPlan;
import myzzyl.domain.vo.NursingProjectPlanVo;
import myzzyl.mapper.NursingProjectPlanMapper;
import myzzyl.service.NursingProjectPlanService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 33249
* @description 针对表【nursing_project_plan(护理计划和项目关联表)】的数据库操作Service实现
* @createDate 2025-08-11 09:47:49
*/
@Service
public class NursingProjectPlanServiceImpl extends ServiceImpl<NursingProjectPlanMapper, NursingProjectPlan>
    implements NursingProjectPlanService{

    /**
     * 根据计划id查询项目
     * @param id 计划id
     * @return 返回值
     */
    @Override
    public List<NursingProjectPlanVo> selectByPlanId(Integer id) {
        return baseMapper.selectByPlanId(id);
    }

    /**
     * 根据计划id删除项目
     * @param id 计划id
     */
    @Override
    public void deleteByPlanId(Integer id) {
        baseMapper.deleteByPlanId(id);
    }
}




